I2C: Fix mxc_i2c.c problem on imx31_phycore
authorMarek Vasut <[email protected]>
Wed, 26 Oct 2011 00:05:44 +0000 (00:05 +0000)
committerAlbert ARIBAUD <[email protected]>
Thu, 3 Nov 2011 21:56:19 +0000 (22:56 +0100)
commitbf0783df0d64772706db4bda0eec7197ea3bf21b
tree342c7baa6f16efd7f2219b9824d3810b1d4d4a6a
parentd28d6a96192d69acd99ebe7031908f18f8765262
I2C: Fix mxc_i2c.c problem on imx31_phycore

The problem was caused by a global variable being used early in the boot
process.

The symptoms were on imx31_phycore board, reading the environment from I2C
EEPROM didn't work correctly and causes default environment to be loaded.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Albert ARIBAUD <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Stefano Babic <[email protected]>
Acked-by: Heiko Schocher <[email protected]>
Tested-by: Anatolij Gustschin <[email protected]>
Tested-by: Stefano Babic <[email protected]>
drivers/i2c/mxc_i2c.c